<?php
class Portfoliomanager_Data_Updateportfoliosettings implements Portfoliomanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "UPDATE portfolio_settings SET portfolio_settings.item_name='".$variables['post']['item_name']."', portfolio_settings.subcategory_name='".$variables['post']['subcategory_name']."', portfolio_settings.status_name='".$variables['post']['status_name']."', portfolio_settings.access_level='".$variables['post']['access_level']."' WHERE portfolio_settings.item_name = '".$variables['post']['old_item_name']."';";
        return $this->core_controller_dataoperation->main($variables);
    }
}
